public class Solution8 {
    public int getSum(int a, int b) {
        while(b != 0) {
            int x = a ^ b;//先计算出无进位相加的结果
            int y = (a & b) << 1;//计算进位
            a = x;
            b = y;

        }
        return a;
    }
}
